/**
 * Created with IntelliJ IDEA.
 * User: ajhin
 * Date: 2/27/13
 * Time: 10:17 PM
 * To change this template use File | Settings | File Templates.
 */
package societyGames.xmlFragment
{
import mx.collections.IList;

public interface IEditList
{
  /**
   * Get the items.
   */
  function get editItems():IList;

  /**
   * Add a new default item.
   */
  function addEditItem():Object;

  /**
   * Remove an item.
   * @param item
   */
  function removeEditItem(item:Object):void;

  /**
   * Reorder an item.
   * @param item
   */
  function moveEditItemUp(item:Object):Boolean;

  /**
   * Reorder an item.
   * @param item
   */
  function moveEditItemDown(item:Object):Boolean;

  /**
   * Gets a string representation of the edit item.
   * @return String representation of the edit item.
   */
  function getEditItemAsString(item:Object):String;

  /**
   * Adds an edit item from string.
   * @param text String representation of edit item, from getEditItemAsString
   */
  function addEditItemFromString(text:String):Object;
}
}
